From 68da406e5164a4d5069452bb37720d577d73d9cc Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Fri, 26 Jan 2007 15:44:41 +0000 Subject: [PATCH] [XEND] Floats for not need to be stringified in Xen API. Signed-off-by: Alastair Tse --- tools/python/xen/util/xmlrpclib2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/python/xen/util/xmlrpclib2.py b/tools/python/xen/util/xmlrpclib2.py index ac95d4cf39..c701020b15 100644 --- a/tools/python/xen/util/xmlrpclib2.py +++ b/tools/python/xen/util/xmlrpclib2.py @@ -50,8 +50,7 @@ except ImportError: def stringify(value): - if isinstance(value, float) or \ - isinstance(value, long) or \ + if isinstance(value, long) or \ (isinstance(value, int) and not isinstance(value, bool)): return str(value) elif isinstance(value, dict): -- 2.30.2